/*
 * @Author: Haochen
 * @Date: 2021-12-08 15:09:03
 * @LastEditTime: 2021-12-10 18:30:23
 * @FilePath: \students-system\src\api\modules\subjects.js
 */

import axios from 'axios';

export default {
  addNewSubject(data) {
    return axios({
      url: '/subjects/addSubjects',
      method: 'POST',
      data,
    });
  },
  getSubjects(params) {
    return axios({
      url: '/subjects/getSubjects',
      method: 'GET',
      params,
    });
  },

  getSubjectsById(params) {
    return axios({ url: '/subjects/getSubjectsById', params });
  },

  deleteSubject(data) {
    return axios({
      url: '/subjects/deleteSubjects',
      method: 'DELETE',
      data,
    });
  },
};
